package com.disk.service;

import com.disk.domain.FileDetail;
import com.disk.domain.FileInformation;
import com.disk.handleResult.FileResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface FileService {
    public FileResult upload(String folderName, MultipartFile file);
    public FileResult uploadFiles(String folderName, List<MultipartFile> files);
    public FileResult delete( String folderName,  String fileName);
    public FileResult deleteFiles(FileDetail[] files);
    public FileResult updateFile( FileInformation fileInformation);
    public FileResult tryDown(String folderName,String fileName);

    void setUserRoot(String username);
}
